package com.tanhua.dubbo.server.api;

import com.tanhua.dubbo.server.pojo.PageInfo;
import com.tanhua.dubbo.server.pojo.Video;

import java.util.List;

/**
 * @description:
 * @author: Administrator
 * @date: Created in 2021/2/22 14:27
 * @version: 0.0.1
 * @modified By:
 */
public interface VideoApi {
    /**
     * @description 保存小视频
     * @author
     * @date
     * @param
     *@return
     */
    String saveVideo(Video video);
    /**
     * @description 分页查询小视频列表，按照时间倒序排序
     * @author
     * @date
     * @param
     *@return
     */
    PageInfo<Video>queryVideoList(Integer page,Integer pageSize);
    /**
     * @description 关注用户
     * @author
     * @date
     * @param
     *@return
     */
    Boolean followUser(Long userId,Long followUserId);
    /**
     * @description 取消关注
     * @author
     * @date
     * @param
     *@return
     */
    Boolean disFollowUser(Long userId,Long followUserId);
    /**
     * @description 根据id查询小视频
     * @author
     * @date
     * @param
     *@return
     */
    Video queryVideoById(String videoId);

    List<Video> queryVideoListByVids(List<Long> vidList);
}
